import { type RouteConfig } from "vue-router";

/**
 * 静态路由文件夹
 * 不采用 import() 引入
 */

import HomeView from "@/views/HomeView/index.vue";
import LoginView from "@/views/LoginView/index.vue";
import NotFoundView from "@/views/NotFoundView/index.vue";

const staticRoutes: RouteConfig[] = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/login",
    name: "login",
    component: LoginView,
    meta: {},
  },
  // 匹配所有路径，没有对应匹配项显示 NotFound
  {
    path: "*",
    name: "notfound",
    component: NotFoundView,
  },
];

export default staticRoutes;
